<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" layout:decorate="main"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head>
    <title>暂缓流失</title>
    <link th:href="@{/localcss/crmlist.css}" href="../static/localcss/crmlist.css" rel="stylesheet">
    <style type="text/css">
        table tr td{
            line-height: 40px;
            border: 1px solid grey;
        }
        table tr td,th{
            text-align: center;
        }


        .bg{
            width: 165px;
        }
    </style>
</head>
<body>
<div layout:fragment="content">
    <div class="">
        <div class="clearfix"></div>
        <div class="row">
            <div class="col-md-12">
                <div class="x_panel">
                    <div class="x_title">
                        <h2>
                            客户流失管理 > 暂缓流失 <i class="fa fa-user"></i>
                        </h2>
                        <div class="clearfix"></div>
                    </div>
                    <div class="x_content">
                        <form class="form-horizontal form-label-left" th:action="@{/lost/saveDefer}" action="/lost/saveDefer" method="post">
                        <input type="hidden" name="lstId" th:value="${lost.lstId}" />
                        <table width="100%">
                            <tr>
                                <td class="bg">编号</td>
                                <td style="text-align: left" th:text="${lost.lstId}">编号</td>
                                <td class="bg">客户名称</td>
                                <td style="text-align: left" th:text="${lost.lstCustName}">日期</td>
                            </tr>
                            <tr>
                                <td class="bg">客户经理</td>
                                <td style="text-align: left" th:text="${lost.lstCustManagerName}">地址</td>
                                <td class="bg">上次下单时间</td>
                                <td style="text-align: left" th:text="${#temporals.format(lost.lstLastOrderDate, 'yyyy年MM月dd日')}">66666.0</td>
                            </tr>
                            <tr>
                                <td class="bg">暂缓措施</td>
                                <td colspan="3" style="text-align: left;" th:text="${lost.lstDelay}">
                                    暂缓措施
                                </td>
                            </tr>
                            <tr>
                                <td class="bg">追加暂缓措施</td>
                                <td colspan="3" style="text-align: left;">
                                    <textarea name="lstDelay" rows="5" cols="30" class="form-control"></textarea>
                                </td>
                            </tr>
                        </table>
                            <div class="form-group" style="text-align: center;margin-top: 20px">
                                <button type="button" class="btn btn-primary" id="back">返回</button>
                                <button  type="submit" class="btn btn-dark">保存</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>
</body>
<script layout:fragment="js">
    $(document).ready(function(){
        $("#back").on("click",function(){
            window.history.back();
        });
    });
</script>
</html>